import request from '../../../utils/request';
//查询患者列表
export const patientData = query => {
    return request({
        url: '/api/stand/yun/pantentInfo/doMain',
        method: 'post' ,
        // url:'./json/patientlist.json',
        // method: 'get',
        params: query
    });
};
//获取体重值
export const getWg = query => {
    return request({
        url: '/api/stand/training/getWeight',
        // url:'./json/getWg.json',
        method: 'get',
        params: query
    });
};
//根据证件类型和证件号 判断患者是否已存在
export const isNotExists = query => {
    return request({
        url: '/api/stand/pantentInfo/isNotexists',
        method:'post',
        // url:'./json/isNotExists.json',
        // method: 'get',
        params: query
    });
};
//添加患者
export const doAdd = query => {
    return request({
        url: '/api/stand/pantentInfo/doAdd',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//修改编辑患者
export const doUpdate = query => {
    return request({
        url: '/api/stand/pantentInfo/doUpdate',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//删除患者
export const doDelete = query => {
    return request({
        url: '/api/stand/pantentInfo/doDelete',
        method:'delete',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//获取多个医生
export const getDoctors = () => {
    return request({
        url: '/api/upp/user/getPhysicians',
        // url:'./json/doctor.json',
        method: 'get',
    });
};
//更换医生
export const saveReplaceDoct = query => {
    return request({
        url: '/api/stand/pantentInfo/transformation',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//患者转出
export const goOutHospital = query => {
    return request({
        url: '/api/stand/pantentInfo/goOut',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//保存处方信息
export const saveCf = query => {
    return request({
        url: '/api/stand/prescription/doAdd',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//保存评估信息
export const saveAssess = query => {
    return request({
        url: '/api/stand/assess/doAdd',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};
//根据患者ID查询处方
export const selectPresptByPtId = query => {
    return request({
        url: '/api/stand/appoint/selectPrescriptionList',
        method:'post',
        // url:'./json/presptlist.json',
        // method: 'get',
        params: query
    });
};
//保存预约信息
export const saveAppoint = query => {
    return request({
        url: '/api/stand/appoint/doAdd',
        method:'post',
        // url:'./json/addORupdatepatient.json',
        // method: 'get',
        params: query
    });
};







